package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_us_trltr")
public class FUsTrltr {
    @Id
    private Long tid;

    /**
     * 日期
     */
    private String date;

    /**
     * 实际平均利率LT Real Average (10> Yrs)
     */
    @Column(name = "ltr_avg")
    private Float ltrAvg;

    public FUsTrltr(Long tid, String date, Float ltrAvg) {
        this.tid = tid;
        this.date = date;
        this.ltrAvg = ltrAvg;
    }

    public FUsTrltr() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取日期
     *
     * @return date - 日期
     */
    public String getDate() {
        return date;
    }

    /**
     * 设置日期
     *
     * @param date 日期
     */
    public void setDate(String date) {
        this.date = date;
    }

    /**
     * 获取实际平均利率LT Real Average (10> Yrs)
     *
     * @return ltr_avg - 实际平均利率LT Real Average (10> Yrs)
     */
    public Float getLtrAvg() {
        return ltrAvg;
    }

    /**
     * 设置实际平均利率LT Real Average (10> Yrs)
     *
     * @param ltrAvg 实际平均利率LT Real Average (10> Yrs)
     */
    public void setLtrAvg(Float ltrAvg) {
        this.ltrAvg = ltrAvg;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", date=").append(date);
        sb.append(", ltrAvg=").append(ltrAvg);
        sb.append("]");
        return sb.toString();
    }
}